// ============================================================================
//
// LCP-net framework by Pierre CHATEL chatelp@gmail.com
// Distributed under GPLv3
// Copyright (C) THALES Land & Joint Systems, 2008, 2009. All rights reserved
//
// ============================================================================

/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.thalesgroup.preferenceFramework.models.LCPnet.impl;


import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

import com.thalesgroup.preferenceFramework.models.LCPnet.*;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class LCPnetFactoryImpl extends EFactoryImpl implements LCPnetFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LCPnetFactory init() {
		try {
			LCPnetFactory theLCPnetFactory = (LCPnetFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.thalesgroup.com/preferenceFramework/models/lcpnet"); 
			if (theLCPnetFactory != null) {
				return theLCPnetFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new LCPnetFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LCPnetFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case LCPnetPackage.LC_PNET: return createLCPnet();
			case LCPnetPackage.LINGUISTIC_DOMAIN: return createLinguisticDomain();
			case LCPnetPackage.LINGUISTIC_SUBSET: return createLinguisticSubset();
			case LCPnetPackage.LNODE: return createLNode();
			case LCPnetPackage.CLPT: return createCLPT();
			case LCPnetPackage.CLPT_LINE: return createCLPTLine();
			case LCPnetPackage.CNODE_VALUE: return createCNodeValue();
			case LCPnetPackage.LNODE_VALUE: return createLNodeValue();
			case LCPnetPackage.LNODE_VALUE_UTILITY: return createLNodeValueUtility();
			case LCPnetPackage.COORDINATE: return createCoordinate();
			case LCPnetPackage.COUTCOME: return createCOutcome();
			case LCPnetPackage.LTWO_TUPLE: return createLTwoTuple();
			case LCPnetPackage.IARC: return createIArc();
			case LCPnetPackage.CI_ARC: return createCIArc();
			case LCPnetPackage.CIT: return createCIT();
			case LCPnetPackage.CIT_LINE: return createCITLine();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LCPnet createLCPnet() {
		LCPnetImpl lcPnet = new LCPnetImpl();
		return lcPnet;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LinguisticDomain createLinguisticDomain() {
		LinguisticDomainImpl linguisticDomain = new LinguisticDomainImpl();
		return linguisticDomain;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LinguisticSubset createLinguisticSubset() {
		LinguisticSubsetImpl linguisticSubset = new LinguisticSubsetImpl();
		return linguisticSubset;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LNode createLNode() {
		LNodeImpl lNode = new LNodeImpl();
		return lNode;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CLPT createCLPT() {
		CLPTImpl clpt = new CLPTImpl();
		return clpt;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CLPTLine createCLPTLine() {
		CLPTLineImpl clptLine = new CLPTLineImpl();
		return clptLine;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CNodeValue createCNodeValue() {
		CNodeValueImpl cNodeValue = new CNodeValueImpl();
		return cNodeValue;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LNodeValue createLNodeValue() {
		LNodeValueImpl lNodeValue = new LNodeValueImpl();
		return lNodeValue;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LNodeValueUtility createLNodeValueUtility() {
		LNodeValueUtilityImpl lNodeValueUtility = new LNodeValueUtilityImpl();
		return lNodeValueUtility;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Coordinate createCoordinate() {
		CoordinateImpl coordinate = new CoordinateImpl();
		return coordinate;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public COutcome createCOutcome() {
		COutcomeImpl cOutcome = new COutcomeImpl();
		return cOutcome;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LTwoTuple createLTwoTuple() {
		LTwoTupleImpl lTwoTuple = new LTwoTupleImpl();
		return lTwoTuple;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IArc createIArc() {
		IArcImpl iArc = new IArcImpl();
		return iArc;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CIArc createCIArc() {
		CIArcImpl ciArc = new CIArcImpl();
		return ciArc;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CIT createCIT() {
		CITImpl cit = new CITImpl();
		return cit;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CITLine createCITLine() {
		CITLineImpl citLine = new CITLineImpl();
		return citLine;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public LCPnetPackage getLCPnetPackage() {
		return (LCPnetPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static LCPnetPackage getPackage() {
		return LCPnetPackage.eINSTANCE;
	}

} //LCPnetFactoryImpl
